package com.youko.backstage.mapper.seckill;

import com.youko.backstage.bean.seckill.Goods;
import com.youko.backstage.bean.seckill.GoodsExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseGoodsMapper {
    long countByExample( GoodsExample example);

    int deleteByExample( GoodsExample example);

    int deleteByPrimaryKey( Long id);

    int insert( Goods record);

    int insertSelective( Goods record);

    List<Goods> selectByExample(GoodsExample example);

    Goods selectByPrimaryKey( Long id);

    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective( Goods record);

    int updateByPrimaryKey( Goods record);

}
